/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xlsBeans;

import com.smartxls.WorkBook;

/**
 *
 * @author Lucas
 */
public class IdentificationElementsXLS {
    private String dateidentified;
    private String identificationqualifier;
    private String identifiedby;
    private String typestatus;
    private String identificationremarks;

    private int sp;

    public IdentificationElementsXLS(){
        this.dateidentified = "";
        this.identificationqualifier = "";
        this.identifiedby = "";
        this.typestatus = "";
        this.identificationremarks = "";
    }

    public IdentificationElementsXLS(WorkBook w, int l, int sp) {
        try{
            setIdentificationElements(w, l, sp);
        }catch(Exception e){
            e.printStackTrace();
        }
    }

    public void setIdentificationElements(WorkBook w, int l, int sp) throws Exception {
        this.dateidentified = w.getFormattedText(l, 55 + sp);
        this.identificationqualifier = w.getText(l, 56 + sp);
        this.identifiedby = w.getText(l, 57 + sp);
        this.typestatus = w.getText(l, 58 + sp);
        this.identificationremarks = w.getText(l, 59 + sp);
    }

    public boolean isSetIdentification(){
        if(this.dateidentified.equals("") && this.identificationqualifier.equals("") && this.identifiedby.equals("") && this.typestatus.equals("") && this.identificationremarks.equals(""))
            return  false;
        else return true;
    }

    public String getDateidentified() {
        return dateidentified;
    }

    public void setDateidentified(String dateidentified) {
        this.dateidentified = dateidentified;
    }

    public String getIdentificationqualifier() {
        return identificationqualifier;
    }

    public void setIdentificationqualifier(String identificationqualifier) {
        this.identificationqualifier = identificationqualifier;
    }

    public String getIdentificationremarks() {
        return identificationremarks;
    }

    public void setIdentificationremarks(String identificationremarks) {
        this.identificationremarks = identificationremarks;
    }

    public String getIdentifiedby() {
        return identifiedby;
    }

    public void setIdentifiedby(String identifiedby) {
        this.identifiedby = identifiedby;
    }

    public int getSp() {
        return sp;
    }

    public void setSp(int sp) {
        this.sp = sp;
    }

    public String getTypestatus() {
        return typestatus;
    }

    public void setTypestatus(String typestatus) {
        this.typestatus = typestatus;
    }

}
